import { Component } from '@angular/core';
import {IonicPage, NavController, NavParams, ViewController} from 'ionic-angular';
import {SystemService} from "../../service/SystemService";
import {UserManager} from "../../../framework/manager/UserManager";

/**
 * Generated class for the BudgetUnitPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */


@Component({
  selector: 'page-budget-unit',
  templateUrl: 'budget-unit.html',
    providers:[SystemService]
})
export class BudgetUnitPage {
    title: string = '预算单位';
    value:any;
    dataList: any;
    type:number=1;
  constructor(public navCtrl: NavController, public navParams: NavParams,public view: ViewController,public ss:SystemService) {

      this.getBudgetUnitList();
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad BudgetUnitPage');
  }

   getBudgetUnitList(){
     this.dataList = UserManager.getInstance().user.userBranch;
   }
}
